import Foundation

struct ProductInfo: Codable {
    let id: String
    let name: String
    let price: Double
    let image: String
    let spec: String
    var stock: Int // 库存属性
    
    enum CodingKeys: String, CodingKey {
        case id
        case name
        case price
        case image
        case spec
        case stock
    }
}